<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="/static/css/pintuer.css">
<link rel="stylesheet" href="/static/css/admin.css">
<script src="/static/js/jquery.js"></script>
<script src="/static/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>添加用户</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="/user/addUser">  
      <div class="form-group">
        <div class="label">
          <label>用户名：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="username" data-validate="required:请输入用户名" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>密码：</label>
        </div>
        <div class="field">
          <input type="password" class="input w50" value="" name="password" data-validate="required:请输入密码" />
          <div class="tips"></div>
        </div>
      </div>
     <!--  <div class="form-group">
        <div class="label">
          <label>上传头像：</label>
        </div>
        <div class="field">
          <input type="file" id="url1" name="photo" class="input tips" style="width:25%; float:left;"  value=""  data-toggle="hover" data-place="right" data-image="" />
        </div>
      </div>   -->   
      
      <if condition="$iscid eq 1">
        <div class="form-group">
          <div class="label">
            <label>部门名称：</label>
          </div>
          <div class="field">
	            <select name="departmentId" class="input w50">
	            <option value="">请选择部门</option>
	            <c:forEach items="${findDeptList}" var="list" >
	              <option value="${list.id}">${list.departmentname}</option>
	            </c:forEach>
	            </select>
            <div class="tips"></div>
          </div>
        </div>
        <div class="form-group">
	        <div class="label">
	          <label>职位：</label>
	        </div>
	        <div class="field">
	          <input type="text" class="input w50" value="" name="position"  />
	          <div class="tips"></div>
	        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>联系方式：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="phone" data-validate="required:请输入联系方式" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>邮箱：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="mail" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <input class="button bg-main icon-check-square-o" type="submit" value="提交">
        </div>
      </div>
    </form>
  </div>
</div>

</body></html>